/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.session;

import com.velocityme.entity.State;
import com.velocityme.entity.TaskStateMachine;
import java.util.Collection;
import javax.ejb.Local;

/**
 *
 * @author rcrida
 */
@Local
public interface StateLocal {

    State createState(KeyLocal key, State state);

    State findState(KeyLocal key, Long stateId);

    void editState(KeyLocal key, State state);

    Collection<State> findAllStates(KeyLocal key);

    State findStartState(KeyLocal key);

    Collection<State> findStates(KeyLocal key, TaskStateMachine taskStateMachine);
    
}
